<template>
  <ContentWrap>
    <div>
      <img src="@/assets/imgs/hasColorLogo.png" alt="" class="logo" />
      <div class="title">江苏江顺精密机电设备有限公司</div>
      <div class="title">备货清单</div>
    </div>
    <div class="d-flex">
        <div class="width-85">客户名称：{{ detailData.customerName }}</div>
        <div class="width-15">产品编号: {{ detailData.productNumber || '' }}</div>
      </div>
    <div class="tab">
      <div class="d-flex border-bottom">
        <div class="width-10 card">序号</div>
        <div class="width-10 card">部件名称</div>
        <div class="width-10 card">部件规格</div>
        <div class="width-10 card">备货数量</div>
        <div class="width-10 card">单位</div>
        <div class="width-10 card">备注</div>
        <div class="width-10 card">备货程度</div>
        <div class="width-10 card">备货完成时间</div>
        <div class="width-10 card">发货程度</div>
        <div class="width-10 card">发货时间</div>
      </div>
      <div class="d-flex border-bottom" v-for="item, index in detailData.productionPrepareDetailCreateReqVOS" :key="index">
        <div class="width-10 card">{{ index + 1 }}</div>
        <div class="width-10 card">{{ item['partName'] }}</div>
        <div class="width-10 card">{{ item['partSpecification'] }}</div>
        <div class="width-10 card">{{ item['prepareQuantity'] }}</div>
        <div class="width-10 card">{{ item['partUnit'] }}</div>
        <div class="width-10 card">{{ item['remark'] }}</div>
        <div class="width-10 card"></div>
        <div class="width-10 card"></div>
        <div class="width-10 card"></div>
        <div class="width-10 card"></div>
      </div>
    </div>
  </ContentWrap>
</template>
<script setup lang="ts">
  defineProps({
    detailData: {
      default: () => {
      }
    }
  })
</script>
<style lang="scss" scoped>
  .contents {
    display: flex;
    justify-content: space-between;
    div {
      flex: 1;
    }
  }
  .title {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    width: 350px;
    margin: 0 auto;
  }

  .logo {
    float: left;
    width: 200px;
    height: 50px;
  }

  .tab {
    border: 1px solid #e4e7ed;
    text-align: center;
  }

  .d-flex {
    display: flex;
    align-items: center;
  }
  

  .card {
    height: 50px;
    line-height: 50px;
  }

  .card-confirm {
    height: 100px;
    line-height: 100px;
  }

  .card:not(:last-child),
  .card-confirm:not(:last-child) {
    border-right: 1px solid #e4e7ed;
  }

  .height-100px {
    height: 100px;
  }

  .border-bottom {
    border-bottom: 1px solid #e4e7ed;
  }

  .width-25 {
    width: 25%;
  }

  .width-10 {
    width: 10%;
  }

  .width-20 {
    width: 20%;
  }

  .width-30 {
    width: 30%;
  }
  .width-85 {
    width: 85%;
  }
  .width-15 {
    width: 15%;
  }
</style>
